//xhry.js
//获取应用实例
const app = getApp()

Page({
  data: {
    list: [],
    informationid: ''
  },
  onShow: function (options) {
    var self = this
    wx.request({
      url: app.serverUrl + 'Abouttwo/showxhrylist',
      method: 'POST',
      header: {
        "Content-Type": "application/x-www-form-urlencoded"
      },
      data: {
        openid: app.openid
      },
      success: function (res) {
        // console.log(res.data.data);
        self.setData({
          list: res.data.data,
        })
        // console.log(res.data.data[0])
      },
    })


  },
  onLoad: function (options) {
    var that = this;
    console.log(options);
    that.setData({
      informationid: options.informationid
    })
  },
  goscgxq(e) {
    var that = this;
    var informationid = that.data.informationid;
    var id = e.currentTarget.dataset.xhryid;
    wx.navigateTo({
      url: '/pages/scgxq/scgxq?informationid=' + informationid + '&id=' + id
    })
  },

})